-- GENERATED SPELL FOR [Watcher Du'una] --


function spell0_25106(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25106', 5279, 1)
end

function spell1_25106(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25106', 690, 1)
end

function Sorts_25106(pUnit, Event)
local choix_sorts_25106 = math.random(0, 1)
if choix_sorts_25106 == 0 then
pUnit:RegisterEvent('spell0_25106', 1, 1)
end
if choix_sorts_25106 == 1 then
pUnit:RegisterEvent('spell1_25106', 1, 1)
end
end

function mob25106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25106', math.random(1500, 3000), 1)
end

function mob25106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25106, 1, 'mob25106_Action')
RegisterUnitEvent(25106, 2, 'mob25106_Leave')
RegisterUnitEvent(25106, 3, 'mob25106_Kill')
RegisterUnitEvent(25106, 4, 'mob25106_Die')
